<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="充值模板" name="first">
      </el-tab-pane>
      <el-tab-pane label="字典类型" name="second">
      </el-tab-pane>
    </el-tabs>

    <!--充值模板-->
    <recharge v-if="activeName==='first'" :message_to="10"></recharge>
    <!--模板字段-->
<!--    <Message v-if="activeName=='second'" :message_to="20"></Message>-->

  </div>
</template>
<script>
import recharge from './recharge.vue';
export default {
  components: {
    /*充值模板*/
    recharge,
  },
  data() {
    return {
      /*参数*/
      message_to: 10,
      /*当前选中*/
      activeName: 'first'
    };
  },
  created() {
    if(this.$route.query.type!=null){
      this.activeName=this.$route.query.type;
    }

  },
  methods: {

  }
};
</script>
